{% extends "bankbase.html" %}

{% block title %} 支付系统 {% endblock %}

{% block content %}
<form class="form-horizontal form-pos-up" action="{{order.returnurl}}" method="post">
<fieldset>
    {% if ret==0 %}
    <legend>支付失败，请重试。</legend>
    {% elif ret==1 %}
    <legend>支付失败，钱不够了，省着点花哦</legend>
    {% elif ret==2 %}
    <legend>订单不存在</legend>
    {% elif ret==3 %}
    <legend>已经支付了，钱太多了么</legend>
    {% else %}
    <legend>支付成功</legend>
    {%endif%}
    {%if ret>=3 %}
    <div class="control-group" id="hiddendiv">
      <input type="hidden" name="orderid" value={{order.orderid}} />
      <input type="hidden" name="amount" value={{order.amount}} />
      <input type="hidden" name="moneytype" value={{order.moneytype}} />
      <input type="hidden" name="mallid" value={{order.mallid}} />
      <input type="hidden" name="status" value={{status}} />
      <input type="hidden" name="sign" value={{sign}} />
    </div>
    {%endif%}
  <div class="control-group">
    <div class="controls">
      <button type="submit" class="btn btn-primary btn-left" >返回商城</button>
    </div>
  </div>
  </fieldset>
</form>


{% endblock %}
